'''
    缺省值：指定默认值

'''

def chengfa(a,b=3):
    return a*b

# def chengfa(a,b,c):
#     return a*b*c
# def chengfa(a,b,c,d):
#     return a*b*c*d
def chengfa2(*args):
    result = 1
    for i in args:
        result *= i
    return result
def login(**kwargs):
    print(kwargs)
    if kwargs['username']=='admin':
        if kwargs['password']=='admin':
            return True
    else:
        return False

if __name__ == '__main__':
    print(chengfa(10,2))
    print(chengfa(100))
    print(chengfa2(1,2,3,4,5,6,7,8,9))
    print(login(username='admin',password='admin',sex = '男',age ='18'))